function checklogged() {
    var a = chrome.extension.getBackgroundPage();
    a.islogged || window.setTimeout(checklogged, 1e3)
}
var bg = chrome.extension.getBackgroundPage(),
    userhasnotscrolled = !0,
    holdupdate = !1;
bg.islogged ? bg.isWhatsDock ? chrome.runtime.sendMessage({
            name: "focusWhatsDock"
        },
        function(a) {
            window.close()
        }) : chrome.runtime.sendMessage({
            name: "focusWhatsApp"
        },
        function(a) {
            window.close()
        }) : (chrome.runtime.sendMessage({
            name: "tryToLoggin"
        },
        function(a) {}), checklogged()),
    window.close();